package state;

import particle.core.platform.Platform;
import particle.core.view.View;
import particle.core.view.controls.Container;
import development.Global;

public class Midlet {
  public Midlet() {
  }

  public void destroyApp() {
    if (GameGlobal.systemCanvas != null) {
      GameGlobal.systemCanvas.destroy();
    }
  }

  public void startApp(View view, Container container1) {
    GameGlobal.init(this, view, container1);
    Global.initBeforeStart();
    Global.init();
  }

  public void platformRequest(String url) {
    // TODO: implement platform request for midlet
  }

  public void notifyDestroyed() {
    Platform.getInstance().postQuitEvent();
  }
}
